package com.tjb.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author tjb
 * @version 1.0
 * @date 2022/8/24 18:04
 */
@Slf4j
@ServletComponentScan // 扫描到@WebFilter注解
@EnableTransactionManagement // 开启事务
@EnableAsync // 开启异步
@SpringBootApplication
@EnableCaching // 开启缓存
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动成功 ");
    }
}
